<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class Unit1 extends Page
{
       public $hiddenCert = null;
       public $hiddenEmp = null;
       function Unit1Create($sender, $params)
       {
       $emp = $_GET['emp'];
       $cert = $_GET['cert'];
       $this->hiddenEmp->setValue($emp);
       $this->hiddenCert->setValue($cert);

       $result = mysql_query("delete from emp_certification_tbl where cert_id='".$this->hiddenCert->getValue()."'");

       redirect('emp_certification_list.php?emp='.$this->hiddenEmp->getValue().'&cert='.$this->hiddenCert->getValue());


       }

}

global $application;

global $Unit1;

//Creates the form
$Unit1=new Unit1($application);

//Read from resource file
$Unit1->loadResource(__FILE__);

//Shows the form
$Unit1->show();

?>